package org.kust.bbs.admin.mapper;

import io.lettuce.core.dynamic.annotation.Param;
import org.kust.bbs.pojo.entity.Admin;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

@Repository
public interface AdminMapper {

    /**
     * 查询账户
     *
     * @param id
     * @return
     */
    Admin selectAdmin(Integer id);

    /**
     * 更新登录时间
     *
     * @param gmtLastLogin
     * @param name
     */
    void updateLsatLogin(@Param("gmtLastLogin") LocalDateTime gmtLastLogin, String name);

}
